<?php
include('config.php');
//$sql = "select * from type";
$c_name = isset($_POST['c_name']) ? trim($_POST['c_name']) : '';
$number = isset($_POST['number']) ? trim($_POST['number']) : '';
$result = $mysql->selectlist("guest"," guest_tel='{$number}'");
if($result){
	echo "该电话号码已被其他用户使用了";
}